{% extends 'base.html.twig' %}
{% block body_bar %}
    <h5>{{ dry_translation('list') }}</h5>
    <div class="ibox-tools">
        <a class="btn btn-outline btn-info" href="{{ dry_path('searchconfig_new') }}" data-route="searchconfig_new">{{ dry_translation('new') }}</a>
    </div>
{% endblock %}
{% block body %}
    <table class="table table-striped">
        <thead>
            <tr>
                <th>{{ dry_translation('Search.id') }}</th>
                <th>{{ dry_translation('Search.dryGroup') }}</th>
                <th>{{ dry_translation('Search.dryName') }}</th>
                <th>{{ dry_translation('Search.dryField') }}</th>
                <th>{{ dry_translation('Search.dryOperator') }}</th>
                <th>{{ dry_translation('Search.dryFormType') }}</th>
                <th>{{ dry_translation('Search.dryDefault') }}</th>
                <th>{{ dry_translation('Search.drySingleRow') }}</th>
                <th>{{ dry_translation('Search.dryStatus') }}</th>
                <th>{{ dry_translation('Search.drySort') }}</th>
                <th>{{ dry_translation('Search.dryNote') }}</th>
                <th>{{ dry_translation('Search.dryAddTime') }}</th>
                <th>{{ dry_translation('action') }}</th>
            </tr>
        </thead>
        <tbody>
            {% for rs in list %}
            <tr>
                <td>{{ rs.id }}</td>
                <td>{{ rs.dry_group }}</td>
                <td>{{ rs.dry_name }}</td>
                <td>{{ rs.dry_field }}</td>
                <td>{{ call_method('choiceShow', get_choice('search_operator'), rs.dry_operator)|raw }}</td>
                <td>{{ call_method('choiceShow', get_choice('search_form_type'), rs.dry_form_type)|raw }}</td>
                <td>{{ rs.dry_default }}</td>
                <td>{{ call_method('statusShow', get_choice('yes_or_no'), rs.dry_single_row)|raw }}</td>
                <td>{{ call_method('statusShow', get_choice('status'), rs.dry_status)|raw }}</td>
                <td>{{ rs.dry_sort }}</td>
                <td>{{ rs.dry_note }}</td>
                <td>{{ rs.dry_add_time }}</td>
                <td>
                    <div class="btn-group">
                        <a class="btn btn-primary" href="{{ dry_path('searchconfig_show', rs.id) }}" data-route="searchconfig_show">{{ dry_translation('show') }}</a>
                        <a class="btn btn-primary" href="{{ dry_path('searchconfig_edit', rs.id) }}" data-route="searchconfig_edit">{{ dry_translation('edit') }}</a>
                    </div>
                </td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
    <div class="text-center">{{ pageCode|raw }}</div>
{% endblock %}
